package com.hq.ims.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * jiang bai ping
 *
 * @Email 526666031@qq.com
 * @Detail APP推送用户
 */
@Data
@Alias("AppPushUser")
@TableName(value = "app_push_user")
@ApiModel(value = "APP推送用户")
public class AppPushUser extends BaseModel<AppPushUser> implements Serializable {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "`app_push_user`", type = IdType.ASSIGN_UUID)
    private String appPushUser;

    @ApiModelProperty(value = "APP推送id")
    @TableField(value = "`app_push_content_id`")
    private String appPushContentId;

    @ApiModelProperty(value = "用户id")
    @TableField(value = "`user_id`")
    private String userId;

    @ApiModelProperty(value = "是否发送")
    @TableField(value = "`is_send`")
    private Boolean isSend;

    @ApiModelProperty(value = "发送时间")
    @TableField(value = "`send_date_time`")
    private LocalDateTime sendDateTime;

    @ApiModelProperty(value = "推送id")
    @TableField(value = "`push_id`")
    private String pushId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "`create_date_time`", fill = FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateTime;
}
